<script>
  import {ref, reactive, h} from 'vue'
  export default{
    setup(){
      //ref声明响应式变量
      const name = ref('尼克')
      //reactive声明响应式变量
      const state = reactive({work:'前端开发'})
      return () => h('h1', [name.value, state.work])
    }
  }
</script>